<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <form action="/dateTime" method="post">
        <input type="text" name="date">
        <input type="submit" value="提交">
        <input type="text" th:value="${date}"/>
        <input type="text" th:value="${#dates.format(date, 'yyyy-MM-dd HH:mm:ss')}"/>
    </form>
</body>
</html>